/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightAdjustInstruction;
import com.sasis.dao.FlightAdjustInstructionDao;
import com.sasis.service.FlightAdjustInstructionManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightAdjustInstructionManagerImpl extends BaseManager implements FlightAdjustInstructionManager {
    private FlightAdjustInstructionDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightAdjustInstructionDao(FlightAdjustInstructionDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightAdjustInstructionManager#getFlightAdjustInstructions(com.sasis.model.FlightAdjustInstruction)
     */
    public List getFlightAdjustInstructions(final FlightAdjustInstruction flightAdjustInstruction) {
        return dao.getFlightAdjustInstructions(flightAdjustInstruction);
    }

    /**
     * @see com.sasis.service.FlightAdjustInstructionManager#getFlightAdjustInstruction(String id)
     */
    public FlightAdjustInstruction getFlightAdjustInstruction(final String id) {
        return dao.getFlightAdjustInstruction(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightAdjustInstructionManager#saveFlightAdjustInstruction(FlightAdjustInstruction flightAdjustInstruction)
     */
    public int saveFlightAdjustInstruction(FlightAdjustInstruction flightAdjustInstruction) {
       return dao.saveFlightAdjustInstruction(flightAdjustInstruction);
    }

    /**
     * @see com.sasis.service.FlightAdjustInstructionManager#removeFlightAdjustInstruction(String id)
     */
    public void removeFlightAdjustInstruction(FlightAdjustInstruction flightAdjustInstruction) {
        dao.removeFlightAdjustInstruction( flightAdjustInstruction);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
